<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>getJSON实现跨域访问</title>
</head>
<body>
    <script src="./js/jquery-1.12.4.js"></script>
    <script>
      $(function(){
          $.getJSON('http://127.0.0.1:3000/?callback=?',function(data){
              console.log(data)
          })
      })
    </script>
</body>
</html>